import request from "@/api/request";
import {JSEncrypt} from "jsencrypt";
import axios from "axios";
import {ElMessage} from "element-plus";

export default {
    // 获得所有考试班级
    getAllTrainClass:(params)=>{
        return request({
            url:"train-class/all",
            method:"post",
            data:params
        })
    },
    /**
     * 获取考试人员
     */
    registerTrainer:(params,token)=>{
        return request({
            url:"/register/adminRegister",
            method:"post",
            headers:{
                "token":token
            },
            data:params
        })
    },

    /**
     * 创建考试
     */
    createExam:(params)=>{
        return request({
            url:"/exam/create",
            method:"post",
            data:params
        })
    },
    /**
     * 获取所有考试分页接口
     */
    getExam:(params)=>{
        return request({
            url:"/exam/page",
            method:"post",
            data:params
        })
    },
    /**
     * 更新考试
     */
    updateExam:(params)=>{
        return request({
            url:"/exam/page",
            method:"post",
            data:params
        })
    },
}
